package com.yunhuajinfu.dialog;

import android.app.Dialog;
import android.content.Context;
import android.widget.Button;
import android.widget.TextView;

import com.yunhuajinfu.R;

/**
 * Created by ekikousei易皇星 on 16/11/24.
 * E-mail:13764664731@163.com
 * Signature:缘分是本书,翻的不经意会错过,读的太认真会流泪!!
 * <p>
 * TODO:类描述:
 */
public class ExitLoaginDialog extends Dialog {

    private TextView dialog_info_content;
    private TextView dialog_info_content_;
    private Button dialog_info_ok;
    private Button dialog_info_cancle;


    public ExitLoaginDialog(Context context) {
        super(context, R.style.MyDialogStyle);
        init();


    }

    public ExitLoaginDialog(Context context, int themeResId) {
        super(context, themeResId);
        init();
    }

    private void init() {
        setContentView(R.layout.exit_dialog_layout);
        initView();


    }

    protected void initView() {
        dialog_info_content = (TextView) findViewById(R.id.dialog_info_content);
        dialog_info_content_ = (TextView) findViewById(R.id.dialog_info_content_);
        dialog_info_ok = (Button) findViewById(R.id.dialog_info_OK);
        dialog_info_cancle = (Button) findViewById(R.id.dialog_info_cancle);
    }


    public void setContent(String content_title, String content,
                           String OKString, String cancleString) {
        dialog_info_content.setText(content_title);
        dialog_info_content_.setText(content);
        dialog_info_cancle.setText(cancleString);
        dialog_info_ok.setText(OKString);

    }

    public void setOKListener(android.view.View.OnClickListener clickListener) {
        dialog_info_ok.setOnClickListener(clickListener);
    }

    public void setCancleListener(
            android.view.View.OnClickListener clickListener) {
        dialog_info_cancle.setOnClickListener(clickListener);
    }


}
